class AddConstraintToConferencesUsers < ActiveRecord::Migration
  def up
    execute <<-SQL
      ALTER TABLE conferences_users
        ADD CONSTRAINT index_conference_users_unique
        PRIMARY KEY (conference_id, user_id);
    SQL
  end

  def down
    execute <<-SQL
      ALTER TABLE conferences_users
        DROP PRIMARY KEY;
    SQL
  end
end
